package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_jieshi_ruffian_battle", autoSave = true)
public class LogJieShiRuffianBattle {

    @FieldTypeAnnotation(desc = "活动Id", isIndex = true)
    private int activityId;

    @FieldTypeAnnotation(desc = "用户id", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "圈数")
    private int round;

    @FieldTypeAnnotation(desc = "泼皮id")
    private int ruffianId;

    @FieldTypeAnnotation(desc = "生成圈数")
    private int genRound;

    @FieldTypeAnnotation(desc = "泼皮战力")
    private long ruffianAttack;

    @FieldTypeAnnotation(desc = "门客总战力")
    private long userAttack;

    @FieldTypeAnnotation(desc = "是否战胜")
    private boolean win;
    @FieldTypeAnnotation(desc = "交子获得数量")
    private long jiaoZi;

    @FieldTypeAnnotation(desc = "时间")
    private Date time;

    public LogJieShiRuffianBattle(int activityId, long userId, int round, int ruffianId, int genRound, long ruffianAttack, long userAttack, boolean win, long jiaoZi) {
        this.activityId = activityId;
        this.userId = userId;
        this.round = round;
        this.ruffianId = ruffianId;
        this.genRound = genRound;
        this.ruffianAttack = ruffianAttack;
        this.userAttack = userAttack;
        this.win = win;
        this.jiaoZi = jiaoZi;
        this.time = new Date();
    }
}
